var index;
var _count=0;
var VM = avalon.define({
    $id : "Mdrag",
	txt:"true",	
	Mdrag:[],
	backgroundPhoto:"image/b_1.jpg",
	add:function(e){
		if(e==1){
			 _count=VM.Mdrag.size();
			VM.Mdrag.push(
			{
			 w: 200,  
	         h: 200,
	         top: 100,
             left: 100,
 	         rotate:0,
 	         _count:_count,
 	         body:{
 	         	type:1,
		 	 	opacity:'1',
		 	 	img:"image/10.jpg",
		 	 	borderStyle:"none",
		 	   	borderColor:"none",
		 	   	borderRadius:'0',
		 	   	borderWidth:'2',
		 	  	_flash:"none",
		 	  	animationDuration:'1',
		 	  	animationDelay:'0',
		 	  	iterationCount:'0',
		 	  	_display:"block",
		 	 }
 	         }
 	 
			);
		}
		else{
			VM.Mdrag.push(
				{w:200,
			   h:20,
			   top:100,
			   left:100,
			   rotate:0,
			   body:{
			   		type:2,
			   		txt:"true",
			   		background:"none",
		 	   		opacity:'1',
		 	   		size:20,
		 	   		fontFamily:"SimSun",
		 	   		_fontStyle:"normal",
		 	   		fontWeight:"normal",
		 	   		color:"black",
		 	   		borderStyle:"none",
		 	   		borderColor:"none",
		 	   		borderRadius:'0',
		 	   		borderWidth:'1',
		 	   		_flash:"none",
		 	  		animationDuration:'1',
		 	  		animationDelay:'0',
		 	  		iterationCount:'0',
		 	  		_display:"block",
			   }}
				);

		}
	},
	click1:function(el){
			index=el;
			}

});




